secure

public Cookie.Builder secure(boolean secure)

Specifies whether the cookie is restricted to a secure protocol (HTTPS or WSS) or it can be sent using any protocol.

Return

this builder

Parameters

secure

the flag value